package com.only4play.authcenter.v2.security.authentication.admin.password;

import org.springframework.security.authentication.AuthenticationProvider;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.AuthenticationException;
import org.springframework.stereotype.Component;

/**
 * @author hinzzz www.hinzzz.cn 157957329@qq.com
 * 2024-04-08
 */
@Component
public class AdminPasswordProvider implements AuthenticationProvider {

    @Override
    public Authentication authenticate(Authentication authentication) throws AuthenticationException {


        return null;
    }

    @Override
    public boolean supports(Class<?> authentication) {
        return AdminPasswordToken.class.isAssignableFrom(authentication);
    }
}
